services.traefik.dynamic.files.<name>.settings

Dynamic configuration for Traefik, written in Nix.

This will be serialized to JSON (which is considered valid YAML) at build, and passed as part of the static file.

Type
JSON value
Example
{
  http = {
    routers = {
      api = {
        rule = "Host(`localhost`)";
        service = "api@internal";
      };
    };
  };
}
Declared
<nixpkgs/nixos/modules/services/web-servers/traefik.nix>